﻿// MIT License
//
// Copyright (c) 2021-present zuohuaijun, Daming Co.,Ltd and Contributors
//
// 电话/微信：18020030720 QQ群1：87333204 QQ群2：252381476

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Net.InformationPlatform.Service.Equipment.Dto;
/// <summary>
/// 设备基础信息
/// </summary>
public class EquipmentBasicInformationInput
{
   /* /// <summary>
    /// 工艺料号 信息
    /// </summary>
    public List<MaterialnoMessage> MATERIALNO { get; set; }*/


    /// <summary>
    /// 设备类别编号
    /// </summary>
    public string EQUIPMENTTYPENO { get; set; } = string.Empty;

    /// <summary>
    /// 设备编号
    /// </summary>
    public string DEVICENUMBER { get; set; } = string.Empty;

    /// <summary>
    ///  设备启用状态  0是启用 1是停用 
    /// </summary>
    public int EQUIPMENTSTATE { get; set; }

    /// <summary>
    /// 设备保养周期
    /// </summary>
    public double MAINTENANCEINTERVALS { get; set; }


    /// <summary>
    /// 设备状态 
    /// 0为正常
    /// 1为报备
    /// 2为维修
    /// 3为保养
    /// </summary>
    public int ARCHIVESTATE { get; set; }


    /// <summary>
    /// 位置
    /// </summary>
    public string LOCATION { get; set; } = string.Empty;


    /// <summary>
    /// 设备管理员
    /// </summary>
    public string EQUIPMENTADMIN { get; set; } = string.Empty;
}

public class DeleteEquipmentInput { 
    /// <summary>
    /// 主键id
    /// </summary>
    public int BID { get; set; }

}

public class UpdateEquipmentStateInput {

    /// <summary>
    /// 主键id
    /// </summary>
    public int BID { get; set; }

    /// <summary>
    /// 设备状态
    /// </summary>
    public int EQUIPMENTSTATE { get; set; }


}

public class MaterialnoMessage {

    /// <summary>
    /// 工艺料号
    /// </summary>
    public string MATERIALNO { get; set; }

    /// <summary>
    /// 品名  
    /// </summary>
    public string ITEMNAME { get; set; } = string.Empty;

    /// <summary>
    /// 规格
    /// </summary>
    public string EQUIPMENTSPECS { get; set; } = string.Empty;

    /// <summary>
    /// 设备编号
    /// </summary>
    public string DEVICENUMBER { get; set; } = string.Empty;
}